<%@ page import="com.example.demo4.Upload" %><%--
  Created by IntelliJ IDEA.
  User: liguosheng
  Date: 06/10/2021
  Time: 18:23
  To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%
    String path = request.getContextPath();
    String basePath = request.getScheme()+"://"+request.getServerName()+":"+request.getServerPort()+path+"/";
%>
<html>
<head>
    <title>Title</title>
    <base href="<%=basePath%>" rel="external nofollow" >
    <script type="texst/javascript">
            var path = ${Upload.UPLOAD_PATH}>
    </script>
</head>
<body>
<%--    <img src="<%=basePath%>download">--%>
    <img src="/uploaded/${Upload.FILE_NAME}" alt="">
    <a href="download?p=/uploaded/${Upload.FILE_NAME}">Download</a>
</body>
</html>
